#set($title = "智能会议预定系统-管理员-用户")
#includeFootable
 <div class="span3">
        
        </div>
 <table class="footable table" data-filter="#filter" data-page-size="10" data-page-previous-text="上一页" data-page-next-text="下一页" data-page-navigation=".pagination">
        <thead>
            <tr>
                <th data-hide="all">
                    用户ID
                </th>
                <th data-sort-initial="true" data-toggle="true">
                    用户工号
                </th>
			
                <th  data-hide="all">
                    用户密码
                </th>
					<th  >
                    姓名
                </th>
				<th data-type="numeric" >
                    管理员
                </th>
				
                <th data-type="numeric">
                    用户权限
                </th>
                <th data-type="numeric">
                    用户状态
                </th>
                <th data-type="numeric">
                    用户部门
                </th>
                <th data-type="numeric">
                    用户分机
                </th>
				<th data-type="numeric">
                    邮箱
                </th>
                <th>
                    用户角色
                </th>
				<th data-sort-ingore="true">操作</th>
            </tr>
        </thead>
        <tbody>
            #foreach($userModel in $userTool.getAllUsers())
            <tr meetingId="$userModel.getId()">
                <td>
                    $!userModel.getId()
                </td>
                <td>
                    $!userModel.workerId
                </td>
                <td>
                    $encrypt.decrypt($userModel.pwd)
                </td>
                <td >
                   $userModel.userName
                </td>
                <td >
                     #judge($userModel.isAdmin)
                </td>
                <td >
                   $!userModel.userRight
                </td>
                <td >
                    #judge($userModel.state)
                </td>
                <td >
                    $!userModel.department
                </td>
				<td >
                    $!userModel.phone
                </td>
				<td >
                    <a href="mailto:$userModel.email">$!userModel.email</a>
                </td>
				<td >
                    $userModel.role
                </td>
				<td> <button class="ui-button-primary" href="/users/modify/$userModel.getId()" target="_myself">查看</button> 
				    <button type="button" href="/users/add" class="ui-button-success" value="新增" target="_myself">
                新增
            </button>
				</td>
            </tr>
            #end
        </tbody>
        <tfoot>
            <tr>
                <td colspan="10">
                    <div class="pagination pagination-centered">
                    </div>
                </td>
            </tr>
        </tfoot>
    </table>
	#includeJs(["admin/admin"])